home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / RealTime Graphics ActiveX / DATA.3 / Examples / CPP / Bars / BarsView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-16  |  2.2 KB  |  84 lines

  1. // BarsView.h : interface of the CBarsView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. //{{AFX_INCLUDES()
  5. #include "rtbarx.h"
  6. //}}AFX_INCLUDES
  7.  
  8. #if !defined(AFX_BARSVIEW_H__43E475EE_408C_11D1_AFD4_0040C79403A8__INCLUDED_)
  9. #define AFX_BARSVIEW_H__43E475EE_408C_11D1_AFD4_0040C79403A8__INCLUDED_
  10.  
  11. #if _MSC_VER >= 1000
  12. #pragma once
  13. #endif // _MSC_VER >= 1000
  14.  
  15. class CBarsView : public CFormView
  16. {
  17. protected: // create from serialization only
  18.     CBarsView();
  19.     DECLARE_DYNCREATE(CBarsView)
  20.  
  21. public:
  22.     //{{AFX_DATA(CBarsView)
  23.     enum { IDD = IDD_BARS_FORM };
  24.     CRTBARX    m_RTControl1;
  25.     CRTBARX    m_RTControl2;
  26.     CRTBARX    m_Bar1;
  27.     CRTBARX    m_Bar2;
  28.     //}}AFX_DATA
  29.  
  30. // Attributes
  31. public:
  32.     CBarsDoc* GetDocument();
  33.  
  34. // Operations
  35. public:
  36.  
  37. // Overrides
  38.     // ClassWizard generated virtual function overrides
  39.     //{{AFX_VIRTUAL(CBarsView)
  40.     public:
  41.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  42.     virtual void OnInitialUpdate();
  43.     protected:
  44.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  45.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  46.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  47.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  48.     virtual void OnPrint(CDC* pDC, CPrintInfo*);
  49.     //}}AFX_VIRTUAL
  50.  
  51. // Implementation
  52. public:
  53.     void BuildGraph1();
  54.     void BuildGraph2();
  55.     virtual ~CBarsView();
  56. #ifdef _DEBUG
  57.     virtual void AssertValid() const;
  58.     virtual void Dump(CDumpContext& dc) const;
  59. #endif
  60.  
  61. protected:
  62.  
  63. // Generated message map functions
  64. protected:
  65.     //{{AFX_MSG(CBarsView)
  66.     afx_msg void OnInternalTimerRtbarxctrl1();
  67.     afx_msg void OnInternalTimerRtbarxctrl2();
  68.     DECLARE_EVENTSINK_MAP()
  69.     //}}AFX_MSG
  70.     DECLARE_MESSAGE_MAP()
  71. };
  72.  
  73. #ifndef _DEBUG  // debug version in BarsView.cpp
  74. inline CBarsDoc* CBarsView::GetDocument()
  75.    { return (CBarsDoc*)m_pDocument; }
  76. #endif
  77.  
  78. /////////////////////////////////////////////////////////////////////////////
  79.  
  80. //{{AFX_INSERT_LOCATION}}
  81. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  82.  
  83. #endif // !defined(AFX_BARSVIEW_H__43E475EE_408C_11D1_AFD4_0040C79403A8__INCLUDED_)
  84.